#!/bin/bash
# date: Two Aug  9 23:15 CST 2022
# author: yjl

mkdir DockerFile
cd DockerFile/
mkdir dockerfile1
cd dockerfile1/
touch Dockerfile
echo "FROM centos" >> Dockerfile
echo "MAINTAINER yjl<354104662@qq.com>" >> Dockerfile
echo "RUN podman run -it --name centos02 localhost/centostest:lastest" >> Dockerfile
podman build -t centostest:lastest

cd
cd /etc/yum.repos.d/;mkdir bak/; mv *.repo bak/
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all && yum makecache
yum install -y vim
